package com.wisdytech.linkdcs.equipLifeCycle.malfunction.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenbin
 * @since 2018-07-25
 */
@TableName("TT_EQ_M_APPLY_RECORD")
public class MApplyRecord extends Model<MApplyRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一id
     */
    @TableId("PK_ID")
    private String pkId;
    /**
     * 需求日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("DEMAND_DATE")
    private Date demandDate;
    /**
     * 申请时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("APPLICATION_DATE")
    private Date applicationDate;
    /**
     * 维修要求
     */
    @TableField("SERVICING_REQUIRE")
    private String servicingRequire;
    /**
     * 故障登记表id
     */
    @TableField("M_RECORD_ID")
    private String mRecordId;
    /**
     * 申请状态
     */
    @TableField("APPLICATION_STATUS")
    private String applicationStatus;
    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;


    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public Date getDemandDate() {
        return demandDate;
    }

    public void setDemandDate(Date demandDate) {
        this.demandDate = demandDate;
    }

    public Date getApplicationDate() {
        return applicationDate;
    }

    public void setApplicationDate(Date applicationDate) {
        this.applicationDate = applicationDate;
    }

    public String getServicingRequire() {
        return servicingRequire;
    }

    public void setServicingRequire(String servicingRequire) {
        this.servicingRequire = servicingRequire;
    }

    public String getmRecordId() {
        return mRecordId;
    }

    public void setmRecordId(String mRecordId) {
        this.mRecordId = mRecordId;
    }

    public String getApplicationStatus() {
        return applicationStatus;
    }

    public void setApplicationStatus(String applicationStatus) {
        this.applicationStatus = applicationStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }

    @Override
    public String toString() {
        return "MApplyRecord{" +
        ", pkId=" + pkId +
        ", demandDate=" + demandDate +
        ", applicationDate=" + applicationDate +
        ", servicingRequire=" + servicingRequire +
        ", mRecordId=" + mRecordId +
        ", applicationStatus=" + applicationStatus +
        ", remark=" + remark +
        "}";
    }
}
